package com.kuqi.entitiy;

/**
 * 章节
 */
public class Chapter {

    private int id;// 主键

    private int bookId;//章节所属书的ID

    private String chapterName;//章节标题

    private String chapterContent;//章节内容

    private String updateDate;//上传日期

    private int chapterIndex; // 章节顺序索引


    public Chapter(int id, int bookId, String chapterName, String chapterContent, String updateDate, int chapterIndex) {
        this.id = id;
        this.bookId = bookId;
        this.chapterName = chapterName;
        this.chapterContent = chapterContent;
        this.updateDate = updateDate;
        this.chapterIndex = chapterIndex;
    }

    public Chapter(){}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getChapterContent() {
        return chapterContent;
    }

    public void setChapterContent(String chapterContent) {
        this.chapterContent = chapterContent;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public int getChapterIndex() {
        return chapterIndex;
    }

    public void setChapterIndex(int chapterIndex) {
        this.chapterIndex = chapterIndex;
    }
}
